package com.eksisozluk.eksidroid.app;

import com.eksisozluk.eksidroid.common.CommonModule;
import com.eksisozluk.eksidroid.remote.RemoteModule;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Provides;

public class InjectorFactory
{
	private static Injector	injector;

	@Provides
	public static Injector getInjector()
	{
		if (injector == null)
		{
			injector = Guice.createInjector(new CommonModule(), new RemoteModule(), new AppModule());
		}

		return injector;
	}

}
